Keithley Model 6514 Electrometer TestPoint Library
-----------------------------------------------------------------

User Notes:

The 6514 TestPoint Library is User Defined Object that provides
the user with pre-defined actions that can be used to program
the 6514 for a variety of functions.

The default IEEE-488 address of the 6514 is set at the factory 
for 14. The 6514 Library is set for the default address of 14.
Should you wish to change the 6514 library address to something
other than 14, double-click on the 6514 icon. You can change the
address to the specific address you wish to use.

The actions pre-defined for the 6514 Library are as follows:
 
Reset 6514
Reset Triggering
Triggering --------------->         Initiate One Trigger Cycle
                                    Send Bus Trigger
Reset Timestamp to 0 Seconds
Get Data ----------------->         Get Last Reading in ASCII
                                    Get Last Reading in Binary
                                    Get Buffer Data
Zero Check Control
Zero Correct Control
Math Calculations -------->         Configure Calculations
                                    Set Math State
                                    Get Math Data
                                    Buffer Math Operations --->
                                           Configure Buffer Math
                                           Get Buffer Math Results
                                    Limits Operations -------->
                                           Set Limits Group 1
                                           Set Limits Group 2
                                           Clear I/O Port When :Init Sent
                                           Set Pass Pattern
                                           Query Test Result 1
                                           Query Test Result 2
                                           Select Input Path for Limit Testing
Display Controls --------->         Set User Displayed Text
                                    Display Control
Data Format and Elements ->         Setup Data Format
                                    Specify Data Elements
                                    Specify Status Register and
                                                     Output Pattern Formats
Digital Output Controls -->         Set Digital Output Controls
                                    Set Digital Outputs
                                    Clear I/O Port Immediately
Configure Voltage Parameters ---->  Set Global Voltage Measure Parameters
                                    Set Individual Parameters----->
                                                    Set Voltage NPLC
                                                    Set Voltage Range
                                                    Set Voltage Guard
                                                    Control External Feedback
Configure Current Parameters -----> Set Global Current Measure Parameters
                                    Set Individual Parameters----->
                                                    Set Current NPLC
                                                    Set Current Range
                                                    Set Current Damping
Configure Resistance Parameters --> Set Global Resistance Measure Parameters
                                    Set Individual Parameters----->
                                                    Set Resistance NPLC
                                                    Set Resistance Range
                                                    Set Resistance Driven
                                                                     Guard
Configure Charge Parameters ----->  Set Global Charge Measure Parameters
                                    Set Individual Parameters----->
                                                    Set Charge NPLC
                                                    Set Charge Range
                                                    Set Charge AutoRange Limit
                                                    Set Auto Discharge Control
Set Measurement Filtering
Set Measurement Reference
Status Register Operations ------>  Enable Status Registers ------->
                                                Measurement Status
                                                Operation Status
                                                Questionable Status
                                    Query Register Status --->
                                                Query Measurement Status
                                                Query Operation Status
                                                Query Questionable Status
Error Message Handling and 
Status Control ----------->         Read Error Messages
                                    Clear Error Message Queue
                                    Clear Status
Set SRQ Function
Reset Registers to Default State
6514 System Controls ----------->   Save Configuration
                                    Recall Configuration
                                    Set Power-on State
                                    Set Line Frequency
                                    Simulate Key Press
                                    Autozero Controls
Buffer Controls ----------------->  Clear Data Buffer
                                    Get Number of Readings Stored
                                    Set Number of Points to Store
                                    Select Buffer Timestamp Format
                                    Select Buffer Control Mode and Feed Mode
Configure 6514 Triggering ------>   Set Arm Layer 1
                                    Set Trigger Layer 
Invoke Instrument Reading Delay
Send Command Strings


These actions are in order as pertaining to the difference SCPI subsystems
that the 6514 uses for its programming language.
        
When creating your application, the 6514 Icon is dragged from the Object
List into the Action List. When this process is performed, the above list
of selections is provided. The user can then select the action to perform
on the 6514. The actions are described below:


Reset 6514
----------
Reset sends the *RST command to the 6514. This action performs a 
complete reset on the 6514 in compliance with the IEEE-488.2
specification. *RST turns the Trigger Model completely off. To turn
the Trigger Model back on, use the 'Initiate One Trigger Cycle' action.


Reset Triggering
----------------
This action stops any triggering the 6514 may be doing.


Triggering ---------------> Initiate One Trigger Cycle
------------------------------------------------------
Sends the :INITiate command to start only one trigger cycle.


Triggering ---------------> Send Bus Trigger
--------------------------------------------
Sends a bus trigger to the 6514.


Reset Timestamp to 0 Seconds
----------------------------
This object resets the timestamp function of the 6514 back to zero.


Get Data --------> Get Last Reading in ASCII
--------------------------------------------
This action queries the 6514 to read the latest instrument reading. This
action CAN return the same reading twice. Data is returned in ASCII format.
The 6514 must be in ASCII data transfer format mode. Use the 'Setup Data
Format' object in 'Data Format and Elements' to change mode.


Get Data --------> Get Last Reading in Binary
---------------------------------------------
This action queries the 6514 to read the latest instrument reading. This
action CAN return the same reading twice. Data is returned in SREAL format.
The 6514 must be in SREAL data transfer format mode. Use the 'Setup Data
Format' object in 'Data Format and Elements' to change mode.


Get Data --------> Get Buffer Data
----------------------------------
This action returns the contents of the 6514 data buffer. The data
returned will be dependent upon what switches were set for the data
format when the buffer was configured, either ASCII or Binary (SREAL).


Zero Check Control
------------------
This action controls the 6514 Zero Check function.


Zero Correct Control
--------------------
This action controls the 6514 Zero Correct function.


Math Calculations -----> Configure Calculations
-----------------------------------------------
This action allows the user to set math functions including Percent and
and mX+b. Target values for the mX+b and percent can be entered.


Math Calculations -----> Set Math State
---------------------------------------
Turns the math function on or off.


Math Calculations -----> Get Math Data
--------------------------------------
Returns the result of the math calculation as string data.


Math Calculations ----->  Recalculate Math Data 
-----------------------------------------------
Recomputes any math function immediately.


Math Calculations -----> Buffer Math Operations ---> Configure Buffer Math 
--------------------------------------------------------------------------
This action allows the user to set the buffer math statistics
including Mean, Standard Deviation, Maximum, Minimum, and Peak-to-Peak.
This actions also turns buffer math operations on or off.


Math Calculations -----> Buffer Math Operations ---> Get Buffer Math Results 
----------------------------------------------------------------------------
Returns the result of the buffer math calculation as string data.


Math Calculations -----> Limits Operations  --->  Set Limits Group 1 
--------------------------------------------------------------------
This actions sets the upper and lower limits in group 1 as well
as the failure digital output patterns for the upper and lower
limits. This actions also controls the automatic clearing of any failed
limits and turns the limit group 1 function on or off. This object should only
be used when the 6514 is in the IDLE state and not triggering. *OPC? is used 
in the object to determine if the limits have been set and will only return a 
valid state in the IDLE state. Otherwise, the 6514 will time out and further 
commands sent to the 6514 will invoke a 'Query Interrupted' error message.


Math Calculations -----> Limits Operations  --->  Set Limits Group 2 
--------------------------------------------------------------------
This actions sets the upper and lower limits in group 2 as well
as the failure digital output patterns for the upper and lower
limits. This actions also controls the automatic clearing of any failed
limits and turns the limit group 2 function on or off. This object should only
be used when the 6514 is in the IDLE state and not triggering. *OPC? is used 
in the object to determine if the limits have been set and will only return a 
valid state in the IDLE state. Otherwise, the 6514 will time out and further 
commands sent to the 6514 will invoke a 'Query Interrupted' error message.


Math Calculations -----> Limits Operations  --->

                        Clear I/O Port When :Init Sent
------------------------------------------------------
This action clears the digital I/O Port when the :INIT command is sent to the
6514. The 'Initiate One Trigger Cycle' object sends the :INIT command.


Math Calculations -----> Limits Operations  --->  Set Pass Pattern 
------------------------------------------------------------------
This actions sets the digital output pattern when a pass condition occurs.


Math Calculations -----> Limits Operations  --->  Query Test Result 1
---------------------------------------------------------------------
This actions returns the results whether there was a pass or fail condition
with limits group 1.


Math Calculations -----> Limits Operations  --->  Query Test Result 2 
---------------------------------------------------------------------
This actions returns the results whether there was a pass or fail condition
with limits group 2.


Math Calculations -----> Limits Operations  --->  Select Input Path
                                                  for Limit Testing
--------------------------------------------------------------------
This action selects the input path for the limit testing. The input paths
are from the input signal (SENSE) or from a math calculation (CALC).


Display Controls  ------------>  Set User Displayed Text 
--------------------------------------------------------
This actions allows the user to put user based message text on the
primary display of the 6514.


Display Controls  ------------>  Display Control 
------------------------------------------------
This actions turns the front panel display on or off.


Data Format and Elements  ---->  Setup Data Format 
--------------------------------------------------
This action sets up the data format that the 6514 will use to return
data. Data formats such as ASCII or Single Precision binary can be
selected (SREAL).


Data Format and Elements  ---->  Specify Data Elements 
------------------------------------------------------
This action allows the user to select what elements of the reading will
be returned such as Timestamp and/or Status.


Data Format and Elements  ---->  Specify Status Register and Output
                                                    Pattern Formats
-------------------------------------------------------------------
This action allows the yuser to choose how the output patterns and status
register information is returned to the user. Selections are ASCII, Hex,
Octal, or Binary.


Digital Output Controls  ----->  Set Digital Outputs Controls 
-------------------------------------------------------------
This action controls the functionality of the Digital Output Port.


Digital Output Controls  ----->  Set Digital Outputs
----------------------------------------------------
This action sets the output of the digital outputs.


Digital Output Controls  ----->  Clear I/O Port Immediately 
-----------------------------------------------------------
This action clears the Digital port immediately.


Configure Voltage Parameters -->  Set Global Voltage Measure Parameters 
-----------------------------------------------------------------------
This action sets up the 6514 to measure voltage. In this action, the NPLC,
voltage range, autoranging, voltage guard, and external feedback functions
can be set. This object should only be used when the 6514 is in the IDLE
state and not triggering. *OPC? is used in the object to determine  if
the parameters have been set and will only return a valid state in the IDLE
state. Otherwise, the 6514 will time out and further commands sent to the 
6514 will invoke a 'Query Interrupted' error message. If you wish to set the 
individual parameters while the 6514 is triggering, use those objects instead 
of this global object.


Configure Voltage Parameters -->  Set Individual Parameters 
                                             -->  Set Voltage NPLC 
------------------------------------------------------------------
This action sets the voltage measure NPLC only.


Configure Voltage Parameters -->  Set Individual Parameters 
                                              -->  Set Voltage Range 
-------------------------------------------------------------------
This action sets the voltage measure range and/or autoranging only.


Configure Voltage Parameters -->  Set Individual Parameters 
                                              -->  Set Voltage Guard 
--------------------------------------------------------------------
This action turns the voltage guard on or off only.


Configure Voltage Parameters -->  Set Individual Parameters 
                                              -->  Control External Feedback 
----------------------------------------------------------------------------
This action enables or disables external feedback only.


Configure Current Parameters -->  Set Global Current Measure Parameters 
-----------------------------------------------------------------------
This action sets up the 6514 to measure current. In this action, the NPLC,
current range, autoranging, and damping functions can be set. This object
should only be used when the 6514 is in the IDLE state and not triggering.
*OPC? is used in the object to determine if the parameters have been set and
will only return a valid state in the IDLE state. Otherwise, the 6514 will
time out and further commands sent to the 6514 will invoke a 'Query
Interrupted' error message. If you wish to set the individual parameters
while the 6514 is triggering, use those objects instead of this global
object.


Configure Current Parameters -->  Set Individual Parameters 
                                              -->  Set Current NPLC 
-------------------------------------------------------------------
This action sets the current measure NPLC only.


Configure Current Parameters -->  Set Individual Parameters 
                                              -->  Set Current Range 
-------------------------------------------------------------------
This action sets the current measure range and/or autoranging only.


Configure Current Parameters -->  Set Individual Parameters 
                                              -->  Set Current Damping 
----------------------------------------------------------------------
This action controls the current damping function.


Configure Resistance Parameters -> Set Global Resistance Measure Parameters
---------------------------------------------------------------------------
This action sets up the 6514 to measure resistance. In this action, the
NPLC, resistance range, autoranging, and driven guard functions can be set.
This object should only be used when the 6514 is in the IDLE state and not
triggering. *OPC? is used in the object to determine if the parameters have
been set and will only return a valid state in the IDLE state. Otherwise,
the 6514 will time out and further commands sent to the 6514 will invoke a
'Query Interrupted' error message. If you wish to set the individual
parameters while the 6514 is triggering, use those objects instead of this
global object.


Configure Resistance Parameters -->  Set Individual Parameters 
                                              -->  Set Resistance NPLC 
----------------------------------------------------------------------
This action sets the resistance measure NPLC only.


Configure Resistance Parameters -->  Set Individual Parameters 
                                              -->  Set Resistance Range 
-----------------------------------------------------------------------
This action sets the resistance measure range and/or autoranging only.


Configure Resistance Parameters -->  Set Individual Parameters 
                                          -->  Set Resistance Driven Guard 
--------------------------------------------------------------------------
This action controls the resistance driven guard.


Configure Charge Parameters -> Set Global Charge Measure Parameters
-------------------------------------------------------------------
This action sets up the 6514 to measure Charge. In this action, the
NPLC, Charge range, autoranging, AutoRange limits, and autodischarging
level functions can be set. This object should only be used when the 6514 
is in the IDLE state and not triggering. *OPC? is used in the object to
determine if the parameters have been set and will only return a valid state
in the IDLE state. Otherwise, the 6514 will time out and further commands
sent to the 6514 will invoke a 'Query Interrupted' error message. If you
wish to set the individual parameters while the 6514 is triggering, use
those objects instead of this global object.


Configure Charge Parameters -->  Set Individual Parameters 
                                              -->  Set Charge NPLC 
------------------------------------------------------------------
This action sets the Charge measure NPLC only.


Configure Charge Parameters -->  Set Individual Parameters 
                                              -->  Set Charge Range 
-------------------------------------------------------------------
This action sets the Charge measure range and/or autoranging only.


Configure Charge Parameters -->  Set Individual Parameters 
                                              -->  Set Autorange Limit 
------------------------------------------------------------------------
This action sets the charge autorange limtis to either HIGH or LOW..


Configure Charge Parameters -->  Set Individual Parameters 
                                              -->  Set Autodischarge Control 
----------------------------------------------------------------------------
This action controls the Charge autodischarging level.


Set Measurement Filtering
-------------------------
This action configures the 6514 for the various filtering when making
measurements. This includes the type of filter, either Repeat or Moving,
the averaging type, the filter count, median filter rank and state, and
the overall filter state, either on or off.


Set Measurement Reference 
-------------------------
This action configures the 6514 for using a baseline reference value.
This is also referred to as the REL or NULL function in the 6514 users
manual. This function allows you to use the input as the REL baseline or
to set a user defined baseline value for REL.


Status Register Operations -> Enable Status Registers -> Measurement Status
---------------------------------------------------------------------------
This action sets up the Measurement Status Enable register so that the
instrument can SRQ on a bit in the measurement register.


Status Register Operations -> Enable Status Registers -> Operation Status
-------------------------------------------------------------------------
This action sets up the Operation Status Enable register so that the
instrument can SRQ on a bit in the Operation register.


Status Register Operations -> Enable Status Registers -> Questionable Status
----------------------------------------------------------------------------
This action sets up the Questionable Status Enable register so that the
instrument can SRQ on a bit in the trigger register.


Status Register Operations -> Query Register Status
                                        -> Query Measurement Status
-------------------------------------------------------------------
This action returns the status bits that are latched in the Measurement
status register.


Status Register Operations -> Query Register Status
                                          -> Query Operation Status
-------------------------------------------------------------------
This action returns the status bits that are latched in the Operation
status register.


Status Register Operations -> Query Register Status
                                            -> Query Questionable Status
------------------------------------------------------------------------
This action returns the status bits that are latched in the Questionable
status register.


Error Message Handling and Status Control ---> Read Error Messages
------------------------------------------------------------------
This action returns the contents of the error message queue.


Error Message Handling and Status Control ---> Clear Error Message Queue
------------------------------------------------------------------------
This action clears the error message queue.


Error Message Handling and Status Control ---> Clear Status
-----------------------------------------------------------
This action clears all the status registers.


Set SRQ Function
----------------
This action sets up the 6514 to SRQ on an event in the measurement,
operation, questionable registers and event summary, message available, and
error available situations.

Reset Registers to Default State
--------------------------------
This action resets all of the status registers to their power-on settings.


6514 System Controls ----> Save Configuration
----------------------------------------------
This action saves the current 6514 setup in memory location 0 to 2.


6514 System Controls ----> Recall Configuration
----------------------------------------------
This action recalls the a 6514 setup in memory location 0 to 2.


6514 System Controls ----> Set Power-on State
----------------------------------------------
This action selects the mode that the 6514 powers on to. Selections
include RST, Preset (Power On Reset), Saved setup 0 through 2.


6514 System Controls ----> Set Line Frequency
----------------------------------------------
This action sets the line frequency of the 6514.


6514 System Controls ----> Simulate Key Press
----------------------------------------------
This action allows the user to simulate front panel key presses. The number
coding is as follows:

1   SHIFT	            16  GRD
2   V		            17  LOCAL
3   I	                    18  AVG
4   OHMS                    19  MEDIAN
5   Q                       20  REL
6   XFDBK                   21  LIMIT
7   ZCHECK                  22  DIGIT
8   ZCOR                    23  RATE
9   -----                   24  Left arrow
10  -----                   26  STORE
11  Range Up Arrow          27  RECALL
12  AUTO                    28  DELAY
13  ENTER                   29  DAMP
14  Range Down Arrow        30  HALT
15  Right Arrow		    31  TRIG
			    32  EXIT


6514 System Controls ----> Autozero Controls 
---------------------------------------------
This action give the user control over the Autozero multiplexer which
is used to insure measurement accuracy.


Buffer Controls ----------> Clear Data Buffer
---------------------------------------------
This actions clears all data stored in the 6514 data buffer.


Buffer Controls ----------> Get Number of Readings Stored
---------------------------------------------------------
This actions queries the 6514 for the actual number of points that have
stored in the internal data buffer.


Buffer Controls ----------> Set Number of Points to Store
---------------------------------------------------------
This actions sets the number of data buffer points to store.


Buffer Controls ----------> Select Buffer Timestamp Format
----------------------------------------------------------
This action sets the format of the buffer timestamp to either
Absolute timestamp or Delta timestamp.


Buffer Controls ----------> Select Buffer Control Mode and Feed Mode
--------------------------------------------------------------------
This actions allows the user to select how the buffer stores data, 
whether it is NEXT or NEVER. You can also select where the data to be stored
in the buffer comes from, either from the inpout signal, a math calculation,
or from the results of a limits test.


Configure 6514 Triggering  -------> Set Arm Layer 1 
----------------------------------------------------
This action allows the user to setup the ARM Layer of the Trigger
Model of the 6514. The source of triggering can be Immediate, Timer, Bus,
Trigger Link (TLINK), STEST, PSTEST, NTEST, or Manual. The action allows
for the choice of Trigger Link lines. Additionally, the user can specify
the Direction Control, and the Arm Count.

This object should only be used when the 6514 is in the IDLE state and 
not triggering. *OPC? is used in the object to determine if the parameters 
have been set and will only return a valid state in the IDLE state. Otherwise, 
the 6514 will time out and further commands sent to the 6514 will invoke a 
'Query Interrupted' error message. 


Configure 6514 Triggering  -------> Set Trigger Layer
-----------------------------------------------------
This action allows the user to specify the Trigger Count, and source which
is either Immediate or Trigger Link (TLINK). The user can also set the 
Trigger Delay. You can also specify when an output trigger is given.

This object should only be used when the 6514 is in the IDLE state and 
not triggering. *OPC? is used in the object to determine if the parameters 
have been set and will only return a valid state in the IDLE state. Otherwise, 
the 6514 will time out and further commands sent to the 6514 will invoke a 
'Query Interrupted' error message.



Invoke Instrument Reading Delay
-------------------------------
This action allows the user to invoke a delay anywhere in the program. It
can be used for more than just reading delays.


Send Command Strings
--------------------
This is a low level action that can be used top send the specific SCPI
commands to the instrument. Refer to the 6514 users manual for a complete
list of SCPI commands.



=================================================================
Notes:
    GPIB Address: Should the user wish to alter the address of the 
    6514 icon, you can double click on the icon in the object window. 
    A settings panel will appear that will allow the user to change 
    the GPIB address for TestPoint. This does not physically change 
    the address on the 6514. Additionally, the user can put the library 
    into DEMO MODE by clicking the appropriate box in the settings panel.

     
    The library covers a large percentage of the 6514 operation but
    not 100% of all of the functions. Any function of the 6514 can be
    programmed using a GPIB object in your application and programmed
    directly. For further assistance on programming the 6514, you can
    contact the Keithley Instruments Application Engineering group at
    800-348-3735 Monday through Friday between 8:00AM and 5:00PM EST in
    the United States or through Keithley's World Wide Web page at:
    http://www.keithley.com

    


